use axum::{
    routing::{delete, get, post, put},
    Router,
};

use crate::bootstrap::AppState;
use crate::controller::album;
// use crate::controller::album_bind;

pub fn album_route(state: AppState) -> Router<AppState> {
    let route = Router::new()
        .route("/", post(album::new))
        .route("/:id", put(album::update))
        .route("/:id", delete(album::delete))
        .route("/", get(album::list))
        .with_state(state);

    route
}
